import { getinformation } from "../../utils/api";
const information = {
  state() {
    return {
      informationContent: "",
    };
  },
  mutations: {
    getinformation(state, payload) {
      state.informationContent = payload;
    },
  },
  actions: {
    async getinformation({ commit }) {
      const res = await getinformation();
      console.log(res);
      commit("getinformation", res);
    },
  },
};
export default information;
